package cn.ctrl;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;

import cn.bean.Film_info;
import cn.bean.User;
import cn.view.BookingView;

public class DayChooseCtrl2 implements ActionListener {
	private JButton today;
	private JButton tomorrow;
	private JButton tom;
	private int i;
	private User user;
	private Film_info film;
	private String day;
	
	





	public DayChooseCtrl2(int i, User user, Film_info film, String day) {
		super();
		this.i = i;
		this.user = user;
		this.film = film;
		this.day = day;
	}







	@Override
	public void actionPerformed(ActionEvent e) {
//		System.out.println(user.getName());
		if(day.equals("today")){
			BookingView.getBookingView(user, film,"today");
		}else if(day.equals("tomorrow")){
			BookingView.getBookingView(user, film,"tomorrow");
		}else if(day.equals("tom")){
			BookingView.getBookingView(user, film,"tom");
		}
	}

}
